package cn.sccl.dirms.security.model;


import java.io.Serializable;
import java.util.List;

/**
 * Created by 杨浩宇 on 2016-02-24.
 */
public class UserPrincipalDetails   implements Serializable {

    protected String id;

    private String userName;

    private String name;

    public List<Authority> getAuthorityList() {
        return authorityList;
    }

    public void setAuthorityList(List<Authority> authorityList) {
        this.authorityList = authorityList;
    }

    public String getPassword() {

        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    private String token;
    private String password;
    private List<Authority> authorityList;

    public UserPrincipalDetails(String id, String name, String userName, String password,List<Authority> authorityList) {

        this.name = name;
        this.userName = userName;
        this.id = id;
        this.authorityList = authorityList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
